package Message;
import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JTextField;



public class Demo {

	String session="";
	 public static void main(String[] args) {
		new Demo(null);
	}
	 
	public Demo(String session) {
		this.session = session;
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		JDialog frame;
		final JTextField textField = new JTextField();
		frame = new JDialog( );
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JButton btnNewButton = new JButton("确定");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
          
			}
		});
		btnNewButton.setBounds(148, 161, 122, 52);
		frame.getContentPane().add(btnNewButton);
		
		
		textField.setBounds(10, 57, 407, 40);
		frame.getContentPane().add(textField);
		textField.setColumns(10);
		frame.setVisible(true);
	}
}
